#-*- coding:UTF-8 -*-
import requests
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding = 'utf8') #改变标准输出的默认编码
url = 'https://sns.totrial.com/profile/notification'
cookie_str = r'remember_82e5d2c56bdd0811318f0cf078b78bfc=eyJpdiI6IlozeU5scGlZUnBEb2hiSE16aUt4eEE9PSIsInZhbHVlIjoidkNcL0hKWWg3N000ano1cDIrVnRDRVlqU0xqM0JpXC9DN3d3M01yZnZkakl2M0Z5MFNjUUxVT1o3MDM0MmhYMFp6UjRZVFUwZFZnRXpuSjJ2cDhFVlVONHhid3pnb3Rlbm81Rmxjd2tGMzU4bz0iLCJtYWMiOiI4NTBjMzZmMWViYzY0ODM3NDhkMjJkODEzZGJjNmNjMTM0M2NkZmMxZTBiM2Q1ZjIxZjFiOTJiZDBmODZmZjVhIn0%3D; XSRF-TOKEN=eyJpdiI6InJDclZHXC9uUDk5aHdZSXNGTUxrUktnPT0iLCJ2YWx1ZSI6IkJ2Z2tER1wvbmRnRld5dlRsd2tGc2IyV21MZTB3ckh4RGVmeVZTRlNWWmN1YWhkb0VLNjNBZVRWTlRjVXg3Qm1Jakk3bGVRd1g1R2N5RTlEdUFYb0Nldz09IiwibWFjIjoiOGI5NjhkNzdkNTU3MmE3MmQ4M2Q2NWNhMzJhODc4ZjM0NzczNTJiZTk1Njk0ZWE1YjRiNjE3YWY4MGFmNmFkMSJ9; laravel_session=eyJpdiI6IkZHMExnM09seEc2M290SFBMazI1VHc9PSIsInZhbHVlIjoiWlhha3p0OVVZc0RJdXYxcEE5YnVZK1o2a0ZUOUdROUUrb1hrNStDaDVBSTRmVkVDY21CaW1Vd0JJcmFkZDFKT2RmOTE0WFBpeTZvbjZiMEs2bVNZREE9PSIsIm1hYyI6IjNkZGNhZTAyNzQ0MTBhNzIyMzcyMDMyZWFiYzUzOGYzNWNlMjIzNzhmOGNhMGU3NjFmYWVlMDQyNWQ4ZWE3NzcifQ%3D%3D'
cookies = {}
for line in cookie_str.split(';'):
    key, value = line.split('=', 1)
    cookies[key] = value

headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'}

resp = requests.get(url, headers = headers, cookies = cookies)

print(resp.content.decode('utf-8'))
